package com.team5101.lha.team5101.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.team5101.base.BaseServiceImpl;
import com.team5101.base.IBaseDao;
import com.team5101.dto.PostbarDTO;
import com.team5101.entity.TPostBar;
import com.team5101.mapper.TPostBarMapper;
import com.team5101.postbar.api.IPostBarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;


@Service
@Component
public class PostBarServiceImpl extends BaseServiceImpl<TPostBar> implements IPostBarService {

    @Autowired
    public TPostBarMapper mapper;

    @Override
    public IBaseDao<TPostBar> getBaseDao() {
        return mapper;
    }

    @Override
    public List<TPostBar> getListBydata(PostbarDTO postbarDTO) {
        return mapper.getListBydata(postbarDTO);
    }

    @Override
    public int deleteByKey(PostbarDTO postbarDTO) {
        return mapper.deleteByKey(postbarDTO);
    }
}
